package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.AdminProductStockDetail;
import com.sc.nft.entity.vo.AdminProductStockDetailVO;
import com.sc.nft.mapper.AdminProductStockDetailMapper;
import lombok.extern.slf4j.Slf4j;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 后台调整商品库存记录表(sc_admin_product_stock_detail)数据DAO
 *
 * @author Tangzehui
 * @since 2023-11-30 10:19:14
 * @description 
 */
@Slf4j
@Repository
public class AdminProductStockDetailDao extends ServiceImpl<AdminProductStockDetailMapper, AdminProductStockDetail> {
    public Page<AdminProductStockDetailVO> pageAdmin(String firstTitle, Boolean isAdd, Date startTime, Date endTime, int pageSize, int pageNo){
        return baseMapper.pageAdmin(new Page<>(pageNo,pageSize), firstTitle, isAdd, startTime, endTime);
    }
}